package com.example.aircraftticketingsystemserver.service;

import com.example.aircraftticketingsystemserver.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.aircraftticketingsystemserver.entity.OrderDTO;
import com.example.aircraftticketingsystemserver.utils.Page;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lxz
 * @since 2024-08-05
 */
public interface IOrdersService extends IService<Order> {
    void addOrder(Order order);

    Page getOrderDetailByUserId(Integer pageNo,
                                Integer pageSize,
                                Integer userId);

    void updateOrder(Order order);

    List<Order>getOrderByFlightId(Integer flightId);
}
